import { axios } from '@/utils/request'

/**
 * api接口列表
 */
const api = {
  list: '/cert/list',
  detail: '/cert/detail',
  applyList: '/codeApply/list',
  apply: '/codeApply/add',
}

/**
 * 列表记录
 */
export function list (params) {
  return axios({
    url: api.list,
    method: 'get',
    params
  })
}

/**
 * 详情记录
 */
export function detail (params) {
  return axios({
    url: api.detail,
    method: 'get',
    params
  })
}

export function apply (data) {
  return axios({
    url: api.apply,
    method: 'post',
    data
  })
}
/**
 * 列表记录
 */
export function applyList (params) {
  return axios({
    url: api.applyList,
    method: 'get',
    params
  })
}

